package com.ccy.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ccy.common.utils.PageUtils;
import com.ccy.product.entity.AttrAttrgroupRelationEntity;
import com.ccy.product.entity.AttrEntity;
import com.ccy.product.entity.AttrGroupEntity;
import com.ccy.product.vo.AttrGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author ccy
 * @email ccy@gmail.com
 * @date 2023-06-19 21:08:47
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    AttrGroupEntity getInfo(Long catelogId);

    List<AttrEntity> getAtrrRelations(Long attrgroupId);

    PageUtils getAtrrNotRelations(Map<String, Object> params, Long attrgroupId, Long catelogId);

    void addAtrrRelations(List<AttrAttrgroupRelationEntity> attrAttrgroupRelationEntitys);

    void deleteAtrrRelations(List<AttrAttrgroupRelationEntity> attrAttrgroupRelationEntitys);

    List<AttrGroupVo> getAllGroupWithAttrByCatelogId(Long catelogId);

}

